#ifndef YUVSPEC_H
#define YUVSPEC_H

extern "C" {

    #include <libavutil/imgutils.h>
}

class YUVSpec
{
private:
    int _width;
    int _height;
    int _fps;
    AVPixelFormat _format;
    int _imageSize;


public:
    YUVSpec();
    YUVSpec(int width, int height, int fps, AVPixelFormat format);
    void calImageSize();

    int getWidth();
    int getHeight();
    int getFPS();
    AVPixelFormat getFormat();
    int getImageSize();

    void setWidth(int width);
    void setHeight(int height);
    void setFPS(int fps);
    void setFormat(AVPixelFormat format);
};

#endif // YUVSPEC_H
